package com.jic.order.api;

import com.alibaba.fastjson.JSONObject;
import com.jic.common.base.vo.RestResult;
import com.jic.order.manage.response.base.ChannelResponseApi;
import com.jic.order.request.base.OrderSyncRequest;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * name要调用的服务,这里相当于声明http地址, 比如预下单:http://.../feign/pay/prePayOrder
 */
@FeignClient(name = "jic-interaction", path = "/cleanSystem")
public interface SettlementApi {

    @PostMapping("/listCommercialTenantMsgSync")
    @ApiOperation(value = "商户信息同步")
    public RestResult<ChannelResponseApi> listCommercialTenantMsgSync(@RequestBody JSONObject jsonObject);

    @PostMapping("/listSettlementIntervalSync")
    @ApiOperation(value = " 结算配置")
    public RestResult<ChannelResponseApi> listSettlementIntervalSync(@RequestBody JSONObject jsonObject);

    @PostMapping("/listOrderSync")
    @ApiOperation(value = " 订单同步")
    public RestResult<ChannelResponseApi> listOrderSync(@RequestBody OrderSyncRequest orderSyncRequest);

}
